﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.DB.Mechanical;
using Autodesk.Revit.DB.Plumbing;
using Autodesk.Revit.UI.Selection;

namespace SystemDiagramNew.TypeDefinition
{
	public class MEPCurveFilter : ISelectionFilter
	{
		public bool AllowElement(Element elem)
		{
			Type type = elem.GetType();
			return type == typeof(Duct) || type == typeof(Pipe);
		}

		public bool AllowReference(Reference reference, XYZ pos)
		{
			return false;
		}
	}
}
